#include "Application.h"

bool Application::OnInit() {
	//Call init()
	if(SDL_Init(SDL_INIT_EVERYTHING) < 0) {
		return false;
	}

	//Set initial window height, width, color bit depth, and viewing opts
	if((Surf_Display = SDL_SetVideoMode(640, 480, 32, SDL_HWSURFACE | SDL_DOUBLEBUF )) == NULL) {  //can use flag SDL_FULLSCREEN
		return false;
	}

	if((Surf_Test = Surface::OnLoad("bitmaps/atlc.bmp")) == NULL) {
		return false;
	}

	return true;
}
